﻿using System;
using System.Windows.Controls;

namespace Tum.CollabXT
{
    public class ConversionWorkflowPage : Page
    {
        /// <summary>
        /// Called to handle the workflow instance to the page.
        /// </summary>
        /// <param name="workflow">The belonging workflow.</param>
        public virtual void ReceiveWorkflowHandle(IConversionWorkflow workflow)
        { }

        /// <summary>
        /// A notification, called, wenn the user clicks 'next'.
        /// </summary>
        /// <returns>True, if the workflow is allowed to advance one step, false if not.</returns>
        public virtual bool NextPageRequested()
        {
            return true;
        }

        /// <summary>
        /// A notification, called, wenn the user clicks 'back'.
        /// </summary>
        /// <returns>True, if the workflow is allowed to go back one step, false if not.</returns>
        public virtual bool PrevPageRequested()
        {
            return true;
        }
    }
}
